package com.xxgc.demo.controller.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author:lxy
 * @create 2023/9/7 19:29
 * 查询用户个人信息的返回
 */
//@AllArgsConstructor 全参构造函数
//@NoArgsConstructor 无参构造函数
@AllArgsConstructor
@NoArgsConstructor
@Data
@Schema(name = "用户个人DTO",description = "用户个人信息DTO")
public class UserInfoDTO {
    @Schema(description = "真实姓名")
    private String name;
    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "手机号")
    private String phoneNumber;
    @Schema(description = "性别(0:女 1:男 -1:未知)")
    private Boolean sex;
    @Schema(description = "身份证号")
    private String idCard;
    @Schema(description = "年龄")
    private Integer age;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
